package com.party.service.sys;

import com.party.common.Page;
import com.party.model.SysRole;
import com.party.model.SysRoleAccess;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 13-3-31
 * Time: 下午3:16
 * To change this template use File | Settings | File Templates.
 */
public interface RoleService {

    public int add(SysRole sysRole);

    public int del(String id);

    public SysRole getSysRoleById(int roleid);

    public Page getList(SysRole sysRole, int pageSize, int pageNumber);

    public List<SysRole> getRoles();

    //添加角色及权限
    public int addAccess(String rolename, String[] nodes);

    //更新角色及权限
    public int updateAccess(SysRole sysRole, String[] nodes);

    //获取某角色权限
    public List<SysRoleAccess> getRoleAccesssByRoleId(int roleId);

}
